//
//  ViewController.m
//  MainProject
//
//  Created by 神州锐达 on 2018/1/16.
//  Copyright © 2018年 onePiece. All rights reserved.
//

#import "ViewController.h"
#import "CTMediator+AModule.h"
#import "CTMediator+BModule.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (IBAction)AModuleBtnClick:(UIButton *)sender {
    
    UIViewController *vc =  [[CTMediator sharedInstance] AModule_aViewControllerWithCallBack:^(NSString *result){
        
        NSLog(@"%@",result);
    }];
    
    [self.navigationController pushViewController:vc animated:YES];
    
    
}
- (IBAction)BModuleBtnClick:(UIButton *)sender {
    
    UIViewController *vc =  [[CTMediator sharedInstance] BModule_aViewControllerWithCallBack:^(NSString *result){
        
        NSLog(@"%@",result);
    }];
    
    [self.navigationController pushViewController:vc animated:YES];
    
}
- (IBAction)remoteAppBtnClick:(UIButton *)sender {

  
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
